idf_component_register(
    SRC_DIRS 
        "."
        "app"
        "test"
        "assets"
        "blufi"
        "lc/wifi_scan_connect"
        "lc/ble_hid_device"
        "lc/mp3_player"
        "lc/desktop_weather"
        "lc/handheld"
                            
    INCLUDE_DIRS 
        "."
        "app"
        "test"
        "assets"
        "blufi"
        "lc/wifi_scan_connect"
        "lc/ble_hid_device"
        "lc/mp3_player"
        "lc/desktop_weather"
        "lc/handheld"
        
    EMBED_FILES 
        "sword.pcm"
        "canon.pcm"
        "a.pcm"
        )

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable)

spiffs_create_partition_image(mp3 ../spiffs FLASH_IN_PROJECT)   #将指定目录中的文件打包成 SPIFFS 镜像,mp3_player例子需要开启